<?php
/**
 * File: KeywordRelation.php.
 * Author: zhouzhe@haibao.com
 * Editor: PhpStorm
 * Date: 16/8/3 上午10:44
 * Brief:
 */

namespace haibao\cms\model\data;

class KeywordRelation extends Base{
	const OBJECT_TYPE_ARTICLE = 1;

	const OBJECT_TYPE_IMAGE = 2;

	const OBJECT_TYPE_VIDEO = 3;

	CONST OBJECT_TYPE_FEATURE = 4;

	/**
	 * 对应PolymerKeywordID
	 */
	public $PolymerKeywordsId;

	/**
	 * @内容Id
	 */
	public $ObjectId;

	/**
	 * 内容类型
	 */
	public $ObjectType;


	public $CreateBy;

	public $CreateTime;

	public $User;

	public $Title;

	public function __construct(){
		parent::__construct();

		$this->intField('PolymerKeywordsId', 'PolymerKeywordsId',true);
		$this->intField('ObjectId', 'ObjectId',true);
		$this->intField('ObjectType', 'ObjectType',true);
		$this->intField('CreateBy', 'CreateBy',true);
		$this->dateField('CreateTime', 'CreateTime',true);

		$this->setTableName('KeywordRelation');
	}
}